<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>金明黄金</title>
<link type="text/css" href="/ui/css/style.css" rel="stylesheet" />
<script src="/ui/js/jquery-1.5.1.min.js"></script>
<script src="/ui/js/smallslider.js"></script>
<script src="/ui/js/func.js"></script>
</head>
<body>
<div class="col" id="header">
  <?php include 'nav.php'; ?>
<div class="col"><img src="/ui/img/banner.png" width="960" /></div>
<div class="col main">
  <div class="side">
    <dl class="menu">
      <dt>金明视点</dt>
      <dd>
        <ul>
          <?php switch($type_name){
			case "2";
			case "3";
			case "4";
          ?>
          <li><a href="<?php echo site_url('info/2'); ?>" >外汇</a></li>
          <li><a href="<?php echo site_url('info/3'); ?>">黄金</a></li>
          <li><a href="<?php echo site_url('info/4'); ?>">白银</a></li>
          <?php };?>
		  <?php switch($type_name){
			case "5";
			case "6";
			case "7";
          ?>
          <li><a href="<?php echo site_url('info/5'); ?>" >日排行</a></li>
          <li><a href="<?php echo site_url('info/6'); ?>">周排行</a></li>
          <li><a href="<?php echo site_url('info/7'); ?>">月排行</a></li>
         <?php }?>
		  <?php switch($type_name){
			case "8";
			case "9";
			case "10";
			case "11";
          ?>
          <li><a href="<?php echo site_url('info/8'); ?>" >基础知识</a></li>
          <li><a href="<?php echo site_url('info/9'); ?>">技术指标</a></li>
          <li><a href="<?php echo site_url('info/10'); ?>">投资技巧</a></li>
          <li><a href="<?php echo site_url('info/11'); ?>">常见问题</a></li>
         <?php }?>
         <?php switch($type_name){
			case "13";
			case "14";
			case "15";
          ?>
          <li><a href="<?php echo site_url('info/13'); ?>" >每日策略</a></li>
          <li><a href="<?php echo site_url('info/14'); ?>">每周策略</a></li>
          <li><a href="<?php echo site_url('info/15'); ?>">每月策略</a></li>
         <?php }?>
        </ul>
      </dd>
    </dl>
    <a href="#" style="margin-bottom:5px;"><img src="/ui/img/sidepic1.png" /></a> <a href="#" style="margin-bottom:5px;"><img src="/ui/img/sidepic2.png" /></a> <a href="#" style="margin-bottom:5px;"><img src="/ui/img/sidepic3.png" /></a> <a href="#" style="margin-bottom:5px;"><img src="/ui/img/sidepic4.png" /></a> </div>
  <dl class="list-box content">
    <dt>黄金动态</dt>
    <dd>
      <ul><?php foreach ($list as $row) { ?>
        <li><span>[<?php echo date("Y-m-d",$row->createdate );?>]</span> <a href="<?php echo site_url('detail/'.$row->id);?>"><?php echo $row->title ?></a></li>
          <?php } ?>
      </ul>

      <div class="paging">
 <?php echo $page ?>
      </div>
    </dd>
  </dl>
</div>
<?php include 'footer.php'; ?>
</body>
</html>
